package com.im.app.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * 子后台管理对象 admin
 *
 * @author ruoyi
 * @date 2023-06-09
 */
public class Admin implements Serializable {

    /** 主键 */
    private Integer id;

    /** 管理卡密 */
    private String code;

    /** 用户名 */
    private String name;

    /** 头像 */
    private String avatar;

    /** 可分配组数 */
    private Integer groupCount;

    /** 可分配用户数 */
    private Integer userCount;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /** 总预配金额 */
    private Integer totalMoney;
    /** 已使用金额 */
    private Integer useMoney;
    /** 待结算金额 */
    private Integer settlementMoney;
    /** 冻结金额 */
    private Integer luckMoney;
    /** 单天金额 */
    private Integer price;

    private String token;
    /** 1 代理  2商户 */
    private int type;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setAvatar(String avatar)
    {
        this.avatar = avatar;
    }

    public String getAvatar()
    {
        return avatar;
    }
    public void setGroupCount(int groupCount)
    {
        this.groupCount = groupCount;
    }

    public int getGroupCount()
    {
        return groupCount;
    }
    public void setUserCount(int userCount)
    {
        this.userCount = userCount;
    }

    public int getUserCount()
    {
        return userCount;
    }


    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setGroupCount(Integer groupCount) {
        this.groupCount = groupCount;
    }

    public void setUserCount(Integer userCount) {
        this.userCount = userCount;
    }

    public Integer getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(Integer totalMoney) {
        this.totalMoney = totalMoney;
    }

    public Integer getUseMoney() {
        return useMoney;
    }

    public void setUseMoney(Integer useMoney) {
        this.useMoney = useMoney;
    }

    public Integer getSettlementMoney() {
        return settlementMoney;
    }

    public void setSettlementMoney(Integer settlementMoney) {
        this.settlementMoney = settlementMoney;
    }

    public Integer getLuckMoney() {
        return luckMoney;
    }

    public void setLuckMoney(Integer luckMoney) {
        this.luckMoney = luckMoney;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("avatar", getAvatar())
            .append("groupCount", getGroupCount())
            .append("userCount", getUserCount())
            .toString();
    }
}
